﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnATous.DataAccess
{
    public class Feature
    {
        public List<DBO.Feature> GetFeatureList()
        {
            OnATousEntities model = new OnATousEntities();
            List<T_Feature> t_features = model.T_Feature.ToList();
            List<DBO.Feature> features = new List<DBO.Feature>();

            foreach (T_Feature t_feature in t_features)
            {
                features.Add(new DBO.Feature(t_feature.Id,t_feature.Name, t_feature.Icon));
            }
            return features;
        }
    }
}